package com.netease.spring.introduction;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("introduction.xml");
		ModifyData md = (ModifyData)ac.getBean("welcomeService");
		md.setData("data");
		System.out.println(md.getData());
		WelcomeService ws = (WelcomeService)md;
		ws.sayWelcome();
	}
}
